package com.zhuoli.service.springboot.dubbo.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;

/**
 * @Author: zhuoli
 * @Date: 2018/8/21 19:48
 * @Description:
 */
@SpringBootApplication
@ImportResource(value = "dubbo-consumer.xml")
public class DubboConsumerApplicationContext {
    public static void main(String[] args) {
        SpringApplication.run(DubboConsumerApplicationContext.class, args);
    }

    @Bean
    public EmbeddedServletContainerCustomizer containerCustomizer() {
        return container -> container.setPort(9899);
    }
}
